import request from '@/utils/request'
import API from './constants'

// 查询轮播图数据

const getBanners = () => request({
  url: API.BANNER_API,
  headers: {
    'x-platform': 'pc',
  },
})

// 请求爆款商品数据
const getBaokuan = (start = 0) => request({
  url: API.BAOKUAN_API,
  params: {
    start,
  },
})

export {
  getBanners,
  getBaokuan,
}
